package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    // 员工登录
    Employee findByUsername(String username);

    //员工列表
    List<Employee> findList();

    // 新增员工
    void save(Employee employee);

    //回显员工
    Employee findById(Long id);

    //修改员工
    void update(Employee employee);
}
